﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Common.IDao
{
    public interface ICreateDaoAsync<T> : IDataCoreAccessObjectAsync where T : class, new()
    {

        Task<int> InsertAsync(T t);
        Task<int> InsertAsync(List<T> entities);

        Task<int> InsertAsync<TEntity>(TEntity t) where TEntity : class, new();
        Task<int> InsertAsync<TEntity>(List<TEntity> entities) where TEntity : class, new();
    }
}
